package serialize

import (
	"encoding/json"
)

type JsonSerialize struct {
}

func (this *JsonSerialize) Encode(content interface{}) ([]byte, error) {
	return json.Marshal(content)
}

func (this *JsonSerialize) Decode(bytes []byte, obj interface{}) error {
	return json.Unmarshal(bytes, obj)
}
